package com.jimmy.medical.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

/**
 * @Desc: 挂号订单取号记录

 * @author jimmy

 * @date 2018-05-22
 */
@Entity
@Table(name = "take_num_record")
public class TakeNumRecord extends AbstractEntity {
	
	/** 是否取号0/1*/
	@Column(name = "is_take")
	private Integer isTake;
	
	/** 是否陪诊0/1*/
	@Column(name = "is_diagnose")
	private Integer isDiagnose;
	
	/** 备注 */
	@Column(name = "info")
	private String info;
	
	/** 所属订单*/
	@ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "order_id")
    @NotFound(action = NotFoundAction.IGNORE)
    private Order order;
	
	@Column(name = "create_time", length = 20)
	private String createTime;
	
	@Column(name = "create_user", length = 50)
	private String createUser;
	
	@Column(name = "update_time")
	private String updateTime;
	
	@Column(name = "update_user", length = 20)
	private String updateUser;

	public Integer getIsTake() {
		return isTake;
	}

	public void setIsTake(Integer isTake) {
		this.isTake = isTake;
	}

	public Integer getIsDiagnose() {
		return isDiagnose;
	}

	public void setIsDiagnose(Integer isDiagnose) {
		this.isDiagnose = isDiagnose;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	
	
}
